package cn.edu.scau.cmi.xiaozecheng.hibernate.domain;

public class Teacher implements java.io.Serializable{
	private String id;
	private String name;
	
	public Teacher() {
		
	}

	public Teacher(String id) {
		super();
		this.id = id;
	}


	public Teacher(String id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String toString() {
		return "{ teacher id = "+id+" name = "+name+" }";
	}
	
}
